package com.care.system.server.mapper;

import java.util.List;

import com.care.system.common.domain.TRecord;
import com.care.system.common.request.RecordRequest;

/**
 * 钱包明细Mapper接口
 *
 * @author 李光耀负责
 * @date 2024-03-25
 */
public interface TRecordMapper
{
    /**
     * 查询钱包明细
     *
     * @param recordId 钱包明细主键
     * @return 钱包明细
     */
    public TRecord selectTRecordByRecordId(Long recordId);

    /**
     * 查询钱包明细列表
     *
     * @param tRecord 钱包明细
     * @return 钱包明细集合
     */
    public List<TRecord> selectTRecordList(TRecord tRecord);

    /**
     * 新增钱包明细
     *
     * @param tRecord 钱包明细
     * @return 结果
     */
    public int insertTRecord(TRecord tRecord);

    /**
     * 修改钱包明细
     *
     * @param tRecord 钱包明细
     * @return 结果
     */
    public int updateTRecord(TRecord tRecord);

    /**
     * 删除钱包明细
     *
     * @param recordId 钱包明细主键
     * @return 结果
     */
    public int deleteTRecordByRecordId(Long recordId);

    /**
     * 批量删除钱包明细
     *
     * @param recordIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTRecordByRecordIds(Long[] recordIds);

    List<TRecord> selectRecordList(RecordRequest recordRequest);
}
